#include <gtk/gtk.h>
#include <stdio.h>

#include "gtkutils.h"

#include "stringutils.h"

void sayHello() {
    printf("hello word\n");
}

int	main(int argc, char **argv) {

    // GtkTreeStore *tree_store = createTreeStore(3, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_STRING);
    // GtkTreeIter iter;
    // treeStoreAppend(tree_store, &iter, NULL);
    // treeStoreSet(tree_store, &iter, 0, "Foo", 1, false, -1);

    // char *str = NULL;
    // gboolean *is = NULL;
    // treeModelGet(convTreeModel(tree_store), &iter, 0, &str, 1, &is, -1);
    // printf("%s - %s\n", str, (is?"yes":"no"));

// 

    GSList *slist = NULL;
    
    

    slist = g_slist_append(slist, createBufferCopy("fuck1"));
    printf("%s\n", slist->data);
    g_free(slist->data);

    // slist->data = createBufferCopy("fuck2");
    slist = g_slist_append(slist, createBufferCopy("fuck2"));
    printf("%d\n", g_slist_length(slist));
    g_slist_foreach(slist, g_free, NULL);
    // g_slist_free(slist);
    // slist->data


    return 0;
}

